﻿@model dynamic

<div class="row-fluid">
    <div class="span4">
        <button class="btn btn-primary" @(ViewBag.hasAllocate && ViewBag.hasFreePartsInWarehouse ? "" : "disabled=disabled")>Allocate Selected</button>
    </div>
    <div class="span2"></div>
    <div class="span6" style="text-align: right">
        <a class="btn btn-primary" href="/orderview/orderdetail?orderref=@ViewBag.OrderRef" target="_blank">View @ViewBag.OrderRef</a>
        <button class="btn btn-primary" @(ViewBag.OrderIsHeld ? "" : "disabled=disabled") onclick="selectedheldorder('@ViewBag.OrderRef'); $('a[href=#viewheldorders]').click()">View Held Items On @ViewBag.OrderRef</button>
    </div>
</div>
